package model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.ForeignKey;

@Entity
@Table(name = "pessoa_juridica")
@ForeignKey(name = "fk_pessoa")
public class PessoaJuridica extends Pessoa {

	@Column(length = 20)
	private String cnpj;

	public String getCnpj() {
		return cnpj;
	}

	public void setCnpj(String cnpj) {
		this.cnpj = cnpj;
	}
	
	@Override
	public String toString(){
		return this.getNome();
	}
}
